package com.peanut.api.fallback;

import com.peanut.api.InfoFeign;
import com.peanut.common.Result;
import com.peanut.dto.TabSpecInfoDTO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

@Component
public class InfoFeignFallback implements InfoFeign {
    @Override
    public Result<TabSpecInfoDTO> selectById(@RequestParam Long specId){
        System.out.println("降级方法");
        return Result.fallback();
    }
}
